<template>
  <div class="loadingBg" v-show="show">
    <div class="loadingCircle">

    </div>
  </div>
</template>

<script>
export default {
  data () {
    return {
      show: false
    }
  }
}
</script>

<style lang="scss" scoped>
@keyframes ani {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
.loadingBg {
  position: fixed;
  z-index: 999;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: rgba(0,0,0,.5);
  display: flex;
  justify-content: center;
  align-items: center;
  .loadingCircle {
    width: 60px;
    height: 60px;
    border: 10px solid #ccc;
    border-top-color: transparent;
    border-radius: 40px;
    animation: ani 1s linear infinite;
  }
}
</style>
